#!ipxe

# NixOS
# https://nixos.org/

set os {{ releases.nixos.name }}
menu ${os}
item --gap Official Releases
{% for item in releases.nixos.versions %}
item {{ item.code_name }} ${space} ${os} {{ item.name }}
{% endfor %}
choose version || goto nixos_exit

imgfree
chain https://github.com/nix-community/nixos-images/releases/download/${version}/netboot-x86_64-linux.ipxe
goto nixos_exit

:nixos_exit
clear menu
exit 0
